//
//  MyOderDetailCell.m
//  saler-ios
//
//  Created by 王亚陆 on 17/6/9.
//  Copyright © 2017年 sayimba. All rights reserved.
//

#import "MyOderDetailCell.h"

@implementation MyOderDetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        
        
        self.contentView.backgroundColor = WhiteColor;
        
        self.nameLabel = [UILabel createUIlabel:@"奥迪-100" andFont:FontOfSize12 andColor:OrderColor];
        [self.contentView addSubview:self.nameLabel];
        [self.nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView.mas_centerY);
            make.left.mas_equalTo(self.contentView.mas_left).with.offset(36*kWidth);
        }];

        self.numberLabel = [UILabel createUIlabel:@"1辆" andFont:FontOfSize12 andColor:OrderColor];
        [self.contentView addSubview:self.numberLabel];
        [self.numberLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView.mas_centerY);
            make.right.mas_equalTo(self.contentView.mas_right).with.offset(-38*kWidth);
        }];
        UIImageView * imageBoard = [[UIImageView alloc]init];
        imageBoard.image = [UIImage imageNamed:@"jiantou"];
        [self.contentView addSubview:imageBoard];
        [imageBoard mas_makeConstraints:^(MASConstraintMaker *make) {
//            make.centerX.mas_equalTo(self.contentView.mas_centerX);
            make.centerY.mas_equalTo(self.contentView.mas_centerY);
            make.left.mas_equalTo(self.nameLabel.mas_right).with.offset(10*kWidth);
            make.right.mas_equalTo(self.numberLabel.mas_left).with.offset(10*kWidth);
            make.height.mas_equalTo(4*kHeight);
        }];


        
    }
    return self;
    
}




- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
